<?php use_helper('Javascript') ?>
<div id="sf_admin_graph"></div>
<!--div class="sf_admin_form">

    <li>
        <ul>
            <?php //echo link_to('Porcentaje de Ventas por Marca','reportes/renderGraph?type=',array('class'=>'example7')) ?>
        </ul>
        <ul>
            <?php //echo link_to('Porcentaje de Ventas por Rubro','reportes/ventasPorRubro',array('class'=>'example7')) ?>
        </ul>
        <ul>
            <?php //echo link_to('Porcentaje de Ventas por Vendedor','reportes/ventasPorVendedor',array('class'=>'example7')) ?>
        </ul>
    </li>

</div-->


<?php
     echo observe_field('reportes_type_graph',
               array(
                   'url' => 'reportes/renderGraph',
                   'update' => 'sf_admin_graph',
                   'with' => "'graph_type=' + value + '&data_graph=' + \$F('reportes_data_graph')",
                   'script' => 'true',
               ))
?>

<?php
     echo observe_field('reportes_data_graph',
               array(
                   'url' => 'reportes/renderGraph',
                   'update' => 'sf_admin_graph',
                   'with' => "'data_graph=' + value + '&graph_type=' + \$F('reportes_type_graph')",
                   'script' => 'true',
               ))
?>

<?php
     echo javascript_tag(remote_function(array(
                   'url' => 'reportes/renderGraph',
                   'update' => 'sf_admin_graph',
                   'with' => "'data_graph=' + \$F('reportes_data_graph') + '&graph_type=' + \$F('reportes_type_graph')",
                    'script' => 'true',
               )))
?>